# -*- coding: utf-8 -*-
# !/usr/bin/env python
import os, django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
django.setup()

from rest_framework import serializers
from components.models import SysOtherPrivilege


class SysOtherPrivilegeSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = SysOtherPrivilege
        fields = ('sys_other_privilege_id', 'sys_other_privilege_code', 'sys_other_privilege_name', 'sys_other_privilege_url', 'sys_other_privilege_user',
                  'sys_other_privilege_pass', 'sys_other_privilege_on', 'sys_other_privilege_relevance', 'sys_other_privilege_key')
